#include "DeviceMediaBase.h"

#define DO_RECORD_ES 0
#define DO_RECORD_PS 0

string getSubscriberStateTypeString(SubscriberStateType type){
#define SWITCH_CASE(type) case SubscriberStateType::type : return #type
    switch (type) {
        SWITCH_CASE(SST_UNKNOWN);
        SWITCH_CASE(SST_PAUSE);
        SWITCH_CASE(SST_PUSHING);
        SWITCH_CASE(SST_CLOSED);
        default : return "unknown";
    }
}
DeviceMediaBase::DeviceMediaBase(){
    m_poller = CacheThreadPool::Instance().getPoller();
}
DeviceMediaBase::~DeviceMediaBase(){
}
void DeviceMediaBase::UpdateCacheTier(const time_t after_start_time,const time_t before_start_time,const int pts_offset){
    m_cachetier.emplace(std::make_pair(after_start_time,CacheTierInfo(before_start_time,pts_offset)));
}

